home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat3 / Tcl / linsert.z / linsert
Encoding:
Text File  |  2002-10-03  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. lllliiiinnnnsssseeeerrrrtttt((((3333TTTTccccllll))))                                                    lllliiiinnnnsssseeeerrrrtttt((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      linsert - Insert elements into a list
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      lllliiiinnnnsssseeeerrrrtttt _l_i_s_t _i_n_d_e_x _e_l_e_m_e_n_t ?_e_l_e_m_e_n_t _e_l_e_m_e_n_t ...?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      This command produces a new list from _l_i_s_t by inserting all of the
  17.      _e_l_e_m_e_n_t arguments just before the _i_n_d_e_xth element of _l_i_s_t.  Each _e_l_e_m_e_n_t
  18.      argument will become a separate element of the new list.  If _i_n_d_e_x is
  19.      less than or equal to zero, then the new elements are inserted at the
  20.      beginning of the list.  If _i_n_d_e_x has the value eeeennnndddd, or if it is greater  |
  21.      than or equal to the number of elements in the list, then the new
  22.      elements are appended to the list.
  23.  
  24.  
  25. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  26.      element, insert, list
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.